package com.spring.demo.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.spring.demo.AbstractService;
import com.spring.demo.user.dao.IUserDao;
import com.spring.demo.user.pojo.User;
import com.spring.demo.user.service.IUserService;

/**
 *
 * @author nickel
 * @date 2019-01-25 16:19:09
 */
@Service
public class UserService extends AbstractService implements IUserService {

	@Autowired
	private IUserDao userDao;

	@Override
	public boolean save(User user) {
		return userDao.insert(user);
	}

	@Override
	public List<User> list() {
		return userDao.getAll();
	}

}
